﻿<Window x:Class="PatientProblemsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit"
    xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
    SizeToContent="WidthAndHeight" WindowStyle="None" AllowsTransparency="True" Icon="/Horizon.HMS;component/Images/POSIcon.ico"
    xmlns:local="clr-namespace:Horizon.HMS" WindowStartupLocation="CenterScreen" Background="Transparent" >
    <Border Background="White" BorderBrush="Navy" BorderThickness="2" CornerRadius="10">
        <Grid Margin="10" Background="{StaticResource WindowBackground}">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
            <TextBlock Margin="20,2" FontSize="16" FontWeight="SemiBold" Foreground="{StaticResource TextLabelColor}">
            <Run Text="HMS (" />
            <Run Text="Your management partner..." FontSize="10" FontStyle="Italic"/>
            <Run Text=")" />
            <Run Text=" :: Problems"/>
        </TextBlock>
        <Button Grid.Column="2" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
        <Button Grid.Column="2" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
            <Path Data="M18,115 L616,115" Fill="#FFF4F4F5" Height="1" Margin="5" Width="500" Stretch="Fill" Stroke="White" Grid.Row="1" Grid.ColumnSpan="2"/>
            <Grid Grid.Row="2" Name="MainStack" Margin="10" HorizontalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="28"/>
                    <RowDefinition Height="28"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="80"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <TextBlock Text="Problem Category:" Grid.Row="3" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Width="250" Grid.ColumnSpan="3" Grid.Row="3" Margin="2" Name="ProblemCategoryComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Problem:" Grid.Row="4" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Row="4" Grid.ColumnSpan="3" Grid.Column="1" Margin="2" Name="ProblemComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Period:" Grid.Row="5" Style="{StaticResource TextBlockStyle}"/>
                <extToolkit:WatermarkTextBox Grid.Column="1" Watermark="Period" Grid.Row="5" Name="PeriodTextBox" Margin="2"/>
                <ComboBox Grid.Row="5" Grid.ColumnSpan="2" Grid.Column="2" Margin="2" Name="PeriodComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Timing:" Grid.Row="6" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="6" Margin="2" Name="ProblemTimingComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Duration:" Grid.Row="6" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="3" Grid.Row="6" Margin="2" Name="ProblemDurationComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Location:" Grid.Row="7" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="7" Margin="2" Name="ProblemLocationComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Severity:" Grid.Row="7" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="3" Grid.Row="7" Margin="2" Name="ProblemSeverityComboBox" DisplayMemberPath="Name" SelectedValuePath="ID"/>
                <TextBlock Text="Remarks:" Grid.Row="8" Style="{StaticResource TextBlockStyle}"/>
                <extToolkit:WatermarkTextBox Grid.Column="1" Grid.ColumnSpan="3" Watermark="Remarks" Height="100" Grid.Row="8" Name="RemarksTextBox" Margin="2"  AcceptsReturn="True" TextWrapping="WrapWithOverflow" VerticalScrollBarVisibility="Auto"/>
                <my:DataGrid AutoGenerateColumns="False" Margin="5" Height="150" VerticalAlignment="Top" IsReadOnly="True" Grid.Row="9" Name="ProblemDataGrid" Grid.ColumnSpan="4">
                    <my:DataGrid.Columns>
                        <my:DataGridTextColumn Header="Problems" Binding="{Binding problemName}" Width="150"/>
                        <my:DataGridTextColumn Header="Location" Binding="{Binding problemLocationName}" />
                        <my:DataGridTextColumn Header="Severity" Binding="{Binding severityName}" />
                        <my:DataGridTextColumn Header="Remarks" Binding="{Binding comments}"/>
                    </my:DataGrid.Columns>
                </my:DataGrid>
            </Grid>
            <StackPanel Grid.Row="2" Grid.Column="1" Margin="3,100">
                <Button Content="Add Problems" Name="AddProblemsButton" Height="30" Width="110" Margin="3"/>
                <Button Content="Add New Problem" Name="AddNewProblemButton" Height="30" Width="110" Margin="3"/>
                <Button Content="OK" Name="OKButton" Height="30" Width="110" Margin="3"/>
                <Button Content="Cancel" Name="CancelButton" Height="30" Width="110" Margin="3"/>
            </StackPanel>
        </Grid>
    </Border>
</Window>
